package records

import (
	"github.com/golib/mysql"
)

const RecordNameOnlineStudentCourse = "online_student_course"

func init() {
	var r = &OnlineStudentCourse{}
	mysql.RegisterRecord(r.Name(), r)
}

type OnlineStudentCourse struct {
	StudentCourseId  int    `column:"student_course_id" primary:"true" modify:"false" json:"studentCourseId" form:"studentCourseId"`
	StudentId        int    `column:"student_id" modify:"true" json:"studentId" form:"studentId"`
	ClassId          int    `modify:"true" json:"classId" form:"classId" column:"class_id"`
	CourseId         int    `json:"courseId" form:"courseId" column:"course_id" modify:"true"`
	TermId           int    `json:"termId" form:"termId" column:"term_id" modify:"true"`
	Seat             int    `json:"seat" form:"seat" column:"seat" modify:"true"`
	Score            int    `json:"score" form:"score" column:"score" modify:"true"`
	Rank             int    `json:"rank" form:"rank" column:"rank" modify:"true"`
	Accuracy         int    `json:"accuracy" form:"accuracy" column:"accuracy" modify:"true"`
	Status           int    `modify:"true" json:"status" form:"status" column:"status"`
	Diamond          int    `column:"diamond" modify:"true" json:"diamond" form:"diamond"`
	NormalScore      int    `json:"normalScore" form:"normalScore" column:"normal_score" modify:"true"`
	HideScore        int    `column:"hide_score" modify:"true" json:"hideScore" form:"hideScore"`
	NormalRank       int    `column:"normal_rank" modify:"true" json:"normalRank" form:"normalRank"`
	SupplyScore      int    `modify:"true" json:"supplyScore" form:"supplyScore" column:"supply_score"`
	ClassAvgScore    int    `json:"classAvgScore" form:"classAvgScore" column:"class_avg_score" modify:"true"`
	ClassMaxScore    int    `json:"classMaxScore" form:"classMaxScore" column:"class_max_score" modify:"true"`
	StudentCount     int    `json:"studentCount" form:"studentCount" column:"student_count" modify:"true"`
	SupplyExpectTime int    `column:"supply_expect_time" modify:"true" json:"supplyExpectTime" form:"supplyExpectTime"`
	NeedSupply       int    `json:"needSupply" form:"needSupply" column:"need_supply" modify:"true"`
	SupplyStatus     int    `json:"supplyStatus" form:"supplyStatus" column:"supply_status" modify:"true"`
	SupplyBeginTime  string `column:"supply_begin_time" modify:"true" json:"supplyBeginTime" form:"supplyBeginTime"`
	SupplyEndTime    string `json:"supplyEndTime" form:"supplyEndTime" column:"supply_end_time" modify:"true"`
	StartTime        string `json:"startTime" form:"startTime" column:"start_time" modify:"true"`
	EndTime          string `json:"endTime" form:"endTime" column:"end_time" modify:"true"`
	CreateTime       string `json:"createTime" form:"createTime" column:"create_time" modify:"false"`
	UpdateTime       string `modify:"false" json:"updateTime" form:"updateTime" column:"update_time"`
	StudentSource    int    `json:"studentSource" form:"studentSource" column:"student_source" modify:"true"`
}

func (r *OnlineStudentCourse) Name() string {
	return RecordNameOnlineStudentCourse
}
